#include "Singleton.h"

#include "Logger.h"

void Singleton::logAlreadyInitialised(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "Warning: " + className + " is already initialised.");
}

void Singleton::logInitialising(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "Initialising " + className + "...");
}

void Singleton::logInitialised(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "... " + className + " initialised.");
}

void Singleton::logAlreadyCleanedUp(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "Warning: " + className + " is already cleaned up.");
}

void Singleton::logCleaningUp(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "Cleaning up " + className + "...");
}

void Singleton::logCleanedUp(const std::string& className)
{
    LOG(SINGLETON_LOG_PREFIX + "... cleaned up " + className + ".");
}

void Singleton::throwNotInitialised(const std::string& className)
{
    throw std::runtime_error(className + " not initialised.");
}